#ifndef h_lz77H
#define h_lz77H

#ifdef __cplusplus
extern "C" {
#endif

#define H_COMPRESS_ERR_OTHER -1
#define H_COMPRESS_ERR_NOMEM -2
#define H_COMPRESS_ERR_STREAM -3

int Lz77CompressFile(FILE *fin, FILE *fout);
int Lz77DecompressFile(FILE *fin, FILE *fout);
int Lz77CompressBuf(const char *BufIn, char *BufOut, int BufInLen, int *BufOutLen);
int Lz77DecompressBuf(const char *BufIn, char *BufOut, int BufInLen, int *BufOutLen);

#ifdef __cplusplus
}
#endif

#endif

